package timer;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

public class TimerTest {

    public static void main(String[] args) {
        Timer timer = new Timer();
        for (int i = 0; i < 2; i++) {
            TimerTask task = new FoolTimerTask("fool"+i);
            //timer.schedule(task, new Date(), 2000);
            timer.scheduleAtFixedRate(task, new Date(), 2000);
        }
        
    }
}


